﻿using Mt.Site.Core.Organizations;
using Mt.Site.Core.Organizations.UserCache.Models;
using System;
using System.Collections.Generic;

namespace Mt.Site.Core.WorkFlows.Common.Cache
{
    [Serializable]
    public class UserInfoCacheItem
    {
        public long UserId { get;  set; }

        public string LoginName { get;  set; }

        public string UserName { get;  set; }

        public string Surname { get;  set; }

        public string PhoneNumber { get;  set; }


        public int Order { get; set; }

        public int? TenantId { get;  set; }

        //用户的部门   按 code 排序  ,第一个作为用户的主部门
        public IReadOnlyList<UnitSelectionData> Units { get;  set; }

        //用户的职位  按职务等级，职务排序号排序，第一个作为主职务 
        public IReadOnlyList<PostItemData> Posts { get;  set; }

        public NewPostLevel NewPostLevel { get; set; }

        public UnitSelectionData MainOrgnzation { get;  set; }
    }
}
